<?php
function isActive($compare) {
    $res = '';
    if (substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1) == $compare . '.php')
        $res = 'class="ui-btn-active"';
    return $res;
}
?>
